package com.jmb.api.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jmb.api.entity.PermissionRoleRef;
import com.jmb.api.vo.permission.PermissionRoleRefVO;
import com.jmb.api.web.service.PermissionRoleRefService;
import com.jmb.api.web.mapper.PermissionRoleRefMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 金梦博
* @description 针对表【t_permission_role_ref】的数据库操作Service实现
* @createDate 2025-09-25 17:20:35
*/
@Service
public class PermissionRoleRefServiceImpl extends ServiceImpl<PermissionRoleRefMapper, PermissionRoleRef>
    implements PermissionRoleRefService{

    @Autowired
    private PermissionRoleRefMapper permissionRoleRefMapper;
    // 删除权限
    @Override
    public void removePermission(PermissionRoleRef permissionRoleRef) {
        permissionRoleRefMapper.deletePermission(permissionRoleRef);
    }

    // 查询权限列表
    @Override
    public List<PermissionRoleRefVO> selectPermissions(Long id) {
        return permissionRoleRefMapper.selectPermissions(id);
    }



}




